//
//  BLMeet_Cell_DetailBanner.m
//  Byelone
//
//  Created by 乔小乔 on 2020/12/16.
//

#import "BLMeet_Cell_DetailBanner.h"
@interface BLMeet_Cell_DetailBanner()
@property (nonatomic, strong) UIImageView *imgContent;
@end
@implementation BLMeet_Cell_DetailBanner

- (instancetype)initWithFrame:(CGRect)frame{
    if (self = [super initWithFrame:frame]) {
        [self createUI];
    }
    return self;
}

- (void)createUI{
    [self addSubview:self.imgContent];
    [self.imgContent mas_makeConstraints:^(MASConstraintMaker *make) {
        make.edges.mas_equalTo(0);
    }];
    
}
- (void)reloadWithUrl:(NSString *)url{
    [self.imgContent sd_setImageWithURL:[NSURL URLWithString:url?:@""]];
}
- (UIImageView *)imgContent{
    if (!_imgContent) {
        _imgContent = [[UIImageView alloc]init];
        _imgContent.contentMode = UIViewContentModeScaleAspectFill;
        _imgContent.clipsToBounds = YES;
    }
    return _imgContent;
}
@end
